package 责任链模式.impl;

/**
 *
 */
public class Business {

    public static void main(String[] args) {

        HandlerOneImpl handlerOne = new HandlerOneImpl();
        HandlerTwoImpl handlerTwo = new HandlerTwoImpl();
        handlerOne.setLevel(1);
        handlerTwo.setLevel(2);
        handlerOne.setNextHandler(handlerTwo);

        handlerOne.execute(3);

    }

}
